<template>
    <el-container class="layout-container-demo" style="height: 1000px">
        <el-aside width="200px" style="background: #99a9bf">
            <el-scrollbar>
                <el-menu :default-openeds="['1', '3']" style="background: #99a9bf;" router>
                    <el-sub-menu index="2">
                        <template #title>
                            <el-icon><icon-menu /></el-icon>店铺管理
                        </template>
                        <el-menu-item-group>
                            <template #title>Group</template>
                            <el-menu-item index="/manage/goodsView">商品信息</el-menu-item>
                            <el-menu-item index="/manage/orderView">订单信息</el-menu-item>
                            <el-menu-item index="/manage/dataView">数据图表</el-menu-item>
                        </el-menu-item-group>
                    </el-sub-menu>

                </el-menu>
            </el-scrollbar>
        </el-aside>

        <el-container>
            <el-header style="text-align: right; font-size: 12px;background: #99a9bf">
                <div class="toolbar">
                    <el-dropdown>
                        <el-icon style="margin-right: 8px; margin-top: 1px"
                        ><setting
                        /></el-icon>
                        <template #dropdown>
                            <el-dropdown-menu>
                                <el-dropdown-item>View</el-dropdown-item>
                                <el-dropdown-item>Add</el-dropdown-item>
                                <el-dropdown-item>Delete</el-dropdown-item>
                            </el-dropdown-menu>
                        </template>
                    </el-dropdown>
                    <span>Tom</span>
                </div>
            </el-header>

            <el-main>
                <keep-alive include="admin">
                    <router-view></router-view>
                </keep-alive>
            </el-main>
        </el-container>
    </el-container>
</template>

<script setup>

import { Menu as IconMenu,User, Setting } from '@element-plus/icons-vue'



</script>

<style scoped>
.layout-container-demo .el-header {
    position: relative;
    background-color: var(--el-color-primary-light-7);
    color: var(--el-text-color-primary);
}
.layout-container-demo .el-aside {
    color: var(--el-text-color-primary);
    background: #99a9bf;
}
.layout-container-demo .el-menu {
    border-right: none;
}
.layout-container-demo .el-main {
    padding: 0;
}
.layout-container-demo .toolbar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    right: 20px;
}
</style>
